<template>
	<view class="container">
		<view class="title">{{info.title}}</view>
		<view class="time">{{info.createtime_text}}</view>
		<view class="content">{{info.content}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: null,
				info: {}
			};
		},
		onLoad({
			id
		}) {
			this.id = id
			this.getMessageInfo()
		},
		methods: {
			//获取消息详情
			getMessageInfo() {
				this.$api.get_user_messageInfo({
					id: this.id
				}).then(res => {
					this.info = res
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 0 36rpx;
	}

	.title {
		padding-top: 36rpx;
		font-weight: 500;
		font-size: 42rpx;
		color: #51565D;
		text-align: center;
	}

	.time {
		font-weight: 400;
		font-size: 24rpx;
		font-size: calc(24rpx * 1.2);
		color: #9EA3A7;
		margin-top: 60rpx;
	}

	.content {
		font-weight: 400;
		font-size: 30rpx;
		font-size: calc(30rpx * 1.2);
		color: #51565D;
		margin-top: 20rpx;
	}
</style>